<?php
/* @var $this HazardousAreaController */
/* @var $model HazardousArea */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'hazardous-area-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'area'); ?>
		<?php echo $form->checkBoxList($model, 'area', array('Kitchen'=>'Kitchen','Laundry'=>'Laundry','Windowless Basement'=>'Windowless Basement','Storage Room'=>'Storage Room','Laboratory'=>'Laboratory')); ?> 
		<?php echo $form->error($model,'area'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'other'); ?>
		<?php echo $form->textArea($model,'other',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'other'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'separation_fire_rated'); ?>
		<?php echo $form->textField($model,'separation_fire_rated'); ?>
		<?php echo $form->error($model,'separation_fire_rated'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'type_of_fire_protection_provided'); ?>
		<?php echo $form->textArea($model,'type_of_fire_protection_provided',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'type_of_fire_protection_provided'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'no_of_unit'); ?>
		<?php echo $form->textField($model,'no_of_unit'); ?>
		<?php echo $form->error($model,'no_of_unit'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'capacity'); ?>
		<?php echo $form->textField($model,'capacity'); ?>
		<?php echo $form->error($model,'capacity'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'accessible'); ?>
		<?php echo $form->textField($model,'accessible'); ?>
		<?php echo $form->error($model,'accessible'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'fuel_used'); ?>
		<?php echo $form->textArea($model,'fuel_used',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'fuel_used'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'where_stored'); ?>
		<?php echo $form->textArea($model,'where_stored',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'where_stored'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'covered_by_bfp_permit'); ?>
		<?php echo $form->textArea($model,'covered_by_bfp_permit',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'covered_by_bfp_permit'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'chimney_made_of'); ?>
		<?php echo $form->textArea($model,'chimney_made_of',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'chimney_made_of'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'spark_arrester'); ?>
		<?php echo $form->textArea($model,'spark_arrester',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'spark_arrester'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'smoke_hood'); ?>
		<?php echo $form->textArea($model,'smoke_hood',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'smoke_hood'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'presence_hazardous_material'); ?>
		<?php echo $form->textField($model,'presence_hazardous_material'); ?>
		<?php echo $form->error($model,'presence_hazardous_material'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'properly_stored_and_handled'); ?>
		<?php echo $form->textField($model,'properly_stored_and_handled'); ?>
		<?php echo $form->error($model,'properly_stored_and_handled'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'storage_permit_covered_for_flammables_covered_by_bfp_permit'); ?>
		<?php echo $form->textArea($model,'storage_permit_covered_for_flammables_covered_by_bfp_permit',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'storage_permit_covered_for_flammables_covered_by_bfp_permit'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'clearance_of_stock_from_ceiling'); ?>
		<?php echo $form->textArea($model,'clearance_of_stock_from_ceiling',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'clearance_of_stock_from_ceiling'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'inspection_id'); ?>
		<?php echo $form->textField($model,'inspection_id'); ?>
		<?php echo $form->error($model,'inspection_id'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->